📝 About The Project
Provides macros for implementing traits and deriving functionality in the fuel-streams ecosystem.
[!NOTE] This crate is specifically modeled for the Fuel Data Systems project, and is not intended for general use outside of the project.
🚀 Usage
The Subject
derive macro allows you to easily implement the Subject
trait for your structs. It generates methods for parsing, building, and creating wildcards for your subject.
Example:
use ;
// Create a new TestSubject
let subject = TestSubject ;
// Parse the subject
assert_eq!;
// Create a wildcard
assert_eq!;
// Create using the build method
let subject = build;
assert_eq!;
// Create a new TestSubject with the builder pattern
let subject = new
.with_field1
.with_field2;
assert_eq!;
// Convert to a string
assert_eq!;
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
For more information on contributing, please see the CONTRIBUTING.md file in the root of the repository.
📜 License
This repo is licensed under the Apache-2.0
license. See LICENSE
for more information.